import createAutoImport from './auto-import';
import uni from "@dcloudio/vite-plugin-uni";
import mockServe from "./mock-serve"
export default function createVitePlugins(viteEnv, isBuild = false) {
  const vitePlugins: any = [uni()]
  vitePlugins.push(createAutoImport())
  !isBuild && vitePlugins.push(mockServe(viteEnv))
  return vitePlugins
}
